package com.itheima.pinda.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pinda.DTO.truck.TruckDto;

import java.util.List;

public interface PdTruckService {

    /**
     * 车辆新增
     *
     * @param truckDto
     * @return
     */
    TruckDto truckInsert(TruckDto truckDto);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    TruckDto truckSelectById(String id);

    /**
     * 分页查询
     *
     * @param pageNum
     * @param pageSize
     * @param truckTypeId
     * @param licensePlate
     * @param fleetId
     * @return
     */
    IPage truckByPage(Integer pageNum, Integer pageSize, String truckTypeId, String licensePlate, String fleetId);

    /**
     * 批量删除
     *
     * @param ids
     */
    void truckDelete(List<String> ids);
}
